﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Secure/Secure.Master" AutoEventWireup="true" CodeBehind="Add User.aspx.cs" Inherits="Site.Secure.Add_User" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <h1>Add User</h1>
<a>This page allows you to add a user to the users database. You can set their user type here to.</a>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2>Enter New Users Details</h2>
<table>
<tr>
<td><a>Username: </a></td>
<td> <asp:TextBox ID="edtUser" runat="server" CssClass="Input" Width="150px"></asp:TextBox></td>
</tr>
<tr>
<td><a>Password:</a></td>
<td><asp:TextBox ID="edtPass" runat="server" CssClass="Input" Width="150px"></asp:TextBox></td>
</tr>
<tr>
<td><a>Email:</a></td>
<td><asp:TextBox ID="edtEmail" runat="server" Width="150px"></asp:TextBox></td>
</tr>
<tr>
<td><a>User Type:</a></td>
<td><asp:DropDownList ID="DropDownList1" runat="server" Width="150px" 
        CssClass="Input">
            <asp:ListItem>readonly</asp:ListItem>
            <asp:ListItem>admin</asp:ListItem>
        </asp:DropDownList></td>
</tr>
<tr>
<td style="height: 30px"></td>
<td align=right style="height: 30px" ><asp:Button ID="Button1" runat="server" Text="Add" 
        onclick="Button1_Click" Width="77px" /></td>
</tr>
</table>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:csMain %>" 
        SelectCommand="SELECT * FROM [Users]"></asp:SqlDataSource>
</asp:Content>


